package com.yunyi.mongo;

import com.yunyi.entity.mongo.ChatMessageDocument;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ChatHistoryRepository extends MongoRepository<ChatMessageDocument, String> {

    List<ChatMessageDocument> getChatMessageDocumentBySessionId(String sessionId);

    void deleteChatMessageDocumentBySessionId(String sessionId);
}
